import Mock from 'mockjs'

const data = Mock.mock({
  'page':{
    total:"@integer(60, 100)",
    'items|10': [{
      id: '@integer(1, 100)',
      name: '@cword(2, 5)',
      cname: '@cword(2, 5)',
      date: '@datetime',
    }]
  }
})


export default [
  {
    url: '/exam/pagelist/[A-Za-z0-9]/[A-Za-z0-9]',
    type: 'get',
    response: config => {
      const item = data.page
      return {
        code: 20000,
        data: {
          total: item.total,
          rows: item.items
        }

      }
    }
  }
]
